package portal.mybatis.dao;

import java.util.ArrayList;
import java.util.List;

public class NodeDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NodeDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNodeIdIsNull() {
            addCriterion("node_id is null");
            return (Criteria) this;
        }

        public Criteria andNodeIdIsNotNull() {
            addCriterion("node_id is not null");
            return (Criteria) this;
        }

        public Criteria andNodeIdEqualTo(Integer value) {
            addCriterion("node_id =", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdNotEqualTo(Integer value) {
            addCriterion("node_id <>", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdGreaterThan(Integer value) {
            addCriterion("node_id >", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("node_id >=", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdLessThan(Integer value) {
            addCriterion("node_id <", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdLessThanOrEqualTo(Integer value) {
            addCriterion("node_id <=", value, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdIn(List<Integer> values) {
            addCriterion("node_id in", values, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdNotIn(List<Integer> values) {
            addCriterion("node_id not in", values, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdBetween(Integer value1, Integer value2) {
            addCriterion("node_id between", value1, value2, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("node_id not between", value1, value2, "nodeId");
            return (Criteria) this;
        }

        public Criteria andNodeNameIsNull() {
            addCriterion("node_name is null");
            return (Criteria) this;
        }

        public Criteria andNodeNameIsNotNull() {
            addCriterion("node_name is not null");
            return (Criteria) this;
        }

        public Criteria andNodeNameEqualTo(String value) {
            addCriterion("node_name =", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameNotEqualTo(String value) {
            addCriterion("node_name <>", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameGreaterThan(String value) {
            addCriterion("node_name >", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameGreaterThanOrEqualTo(String value) {
            addCriterion("node_name >=", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameLessThan(String value) {
            addCriterion("node_name <", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameLessThanOrEqualTo(String value) {
            addCriterion("node_name <=", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameLike(String value) {
            addCriterion("node_name like", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameNotLike(String value) {
            addCriterion("node_name not like", value, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameIn(List<String> values) {
            addCriterion("node_name in", values, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameNotIn(List<String> values) {
            addCriterion("node_name not in", values, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameBetween(String value1, String value2) {
            addCriterion("node_name between", value1, value2, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeNameNotBetween(String value1, String value2) {
            addCriterion("node_name not between", value1, value2, "nodeName");
            return (Criteria) this;
        }

        public Criteria andNodeIpIsNull() {
            addCriterion("node_ip is null");
            return (Criteria) this;
        }

        public Criteria andNodeIpIsNotNull() {
            addCriterion("node_ip is not null");
            return (Criteria) this;
        }

        public Criteria andNodeIpEqualTo(String value) {
            addCriterion("node_ip =", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpNotEqualTo(String value) {
            addCriterion("node_ip <>", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpGreaterThan(String value) {
            addCriterion("node_ip >", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpGreaterThanOrEqualTo(String value) {
            addCriterion("node_ip >=", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpLessThan(String value) {
            addCriterion("node_ip <", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpLessThanOrEqualTo(String value) {
            addCriterion("node_ip <=", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpLike(String value) {
            addCriterion("node_ip like", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpNotLike(String value) {
            addCriterion("node_ip not like", value, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpIn(List<String> values) {
            addCriterion("node_ip in", values, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpNotIn(List<String> values) {
            addCriterion("node_ip not in", values, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpBetween(String value1, String value2) {
            addCriterion("node_ip between", value1, value2, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andNodeIpNotBetween(String value1, String value2) {
            addCriterion("node_ip not between", value1, value2, "nodeIp");
            return (Criteria) this;
        }

        public Criteria andGpuIdIsNull() {
            addCriterion("gpu_id is null");
            return (Criteria) this;
        }

        public Criteria andGpuIdIsNotNull() {
            addCriterion("gpu_id is not null");
            return (Criteria) this;
        }

        public Criteria andGpuIdEqualTo(Integer value) {
            addCriterion("gpu_id =", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdNotEqualTo(Integer value) {
            addCriterion("gpu_id <>", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdGreaterThan(Integer value) {
            addCriterion("gpu_id >", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("gpu_id >=", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdLessThan(Integer value) {
            addCriterion("gpu_id <", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdLessThanOrEqualTo(Integer value) {
            addCriterion("gpu_id <=", value, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdIn(List<Integer> values) {
            addCriterion("gpu_id in", values, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdNotIn(List<Integer> values) {
            addCriterion("gpu_id not in", values, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdBetween(Integer value1, Integer value2) {
            addCriterion("gpu_id between", value1, value2, "gpuId");
            return (Criteria) this;
        }

        public Criteria andGpuIdNotBetween(Integer value1, Integer value2) {
            addCriterion("gpu_id not between", value1, value2, "gpuId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNull() {
            addCriterion("group_name is null");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNotNull() {
            addCriterion("group_name is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNameEqualTo(String value) {
            addCriterion("group_name =", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotEqualTo(String value) {
            addCriterion("group_name <>", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThan(String value) {
            addCriterion("group_name >", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("group_name >=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThan(String value) {
            addCriterion("group_name <", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThanOrEqualTo(String value) {
            addCriterion("group_name <=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLike(String value) {
            addCriterion("group_name like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotLike(String value) {
            addCriterion("group_name not like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameIn(List<String> values) {
            addCriterion("group_name in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotIn(List<String> values) {
            addCriterion("group_name not in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameBetween(String value1, String value2) {
            addCriterion("group_name between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotBetween(String value1, String value2) {
            addCriterion("group_name not between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyIsNull() {
            addCriterion("gpu_identify is null");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyIsNotNull() {
            addCriterion("gpu_identify is not null");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyEqualTo(String value) {
            addCriterion("gpu_identify =", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyNotEqualTo(String value) {
            addCriterion("gpu_identify <>", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyGreaterThan(String value) {
            addCriterion("gpu_identify >", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyGreaterThanOrEqualTo(String value) {
            addCriterion("gpu_identify >=", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyLessThan(String value) {
            addCriterion("gpu_identify <", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyLessThanOrEqualTo(String value) {
            addCriterion("gpu_identify <=", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyLike(String value) {
            addCriterion("gpu_identify like", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyNotLike(String value) {
            addCriterion("gpu_identify not like", value, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyIn(List<String> values) {
            addCriterion("gpu_identify in", values, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyNotIn(List<String> values) {
            addCriterion("gpu_identify not in", values, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyBetween(String value1, String value2) {
            addCriterion("gpu_identify between", value1, value2, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuIdentifyNotBetween(String value1, String value2) {
            addCriterion("gpu_identify not between", value1, value2, "gpuIdentify");
            return (Criteria) this;
        }

        public Criteria andGpuVersionIsNull() {
            addCriterion("gpu_version is null");
            return (Criteria) this;
        }

        public Criteria andGpuVersionIsNotNull() {
            addCriterion("gpu_version is not null");
            return (Criteria) this;
        }

        public Criteria andGpuVersionEqualTo(String value) {
            addCriterion("gpu_version =", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionNotEqualTo(String value) {
            addCriterion("gpu_version <>", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionGreaterThan(String value) {
            addCriterion("gpu_version >", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionGreaterThanOrEqualTo(String value) {
            addCriterion("gpu_version >=", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionLessThan(String value) {
            addCriterion("gpu_version <", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionLessThanOrEqualTo(String value) {
            addCriterion("gpu_version <=", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionLike(String value) {
            addCriterion("gpu_version like", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionNotLike(String value) {
            addCriterion("gpu_version not like", value, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionIn(List<String> values) {
            addCriterion("gpu_version in", values, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionNotIn(List<String> values) {
            addCriterion("gpu_version not in", values, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionBetween(String value1, String value2) {
            addCriterion("gpu_version between", value1, value2, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuVersionNotBetween(String value1, String value2) {
            addCriterion("gpu_version not between", value1, value2, "gpuVersion");
            return (Criteria) this;
        }

        public Criteria andGpuDetailIsNull() {
            addCriterion("gpu_detail is null");
            return (Criteria) this;
        }

        public Criteria andGpuDetailIsNotNull() {
            addCriterion("gpu_detail is not null");
            return (Criteria) this;
        }

        public Criteria andGpuDetailEqualTo(String value) {
            addCriterion("gpu_detail =", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailNotEqualTo(String value) {
            addCriterion("gpu_detail <>", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailGreaterThan(String value) {
            addCriterion("gpu_detail >", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailGreaterThanOrEqualTo(String value) {
            addCriterion("gpu_detail >=", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailLessThan(String value) {
            addCriterion("gpu_detail <", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailLessThanOrEqualTo(String value) {
            addCriterion("gpu_detail <=", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailLike(String value) {
            addCriterion("gpu_detail like", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailNotLike(String value) {
            addCriterion("gpu_detail not like", value, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailIn(List<String> values) {
            addCriterion("gpu_detail in", values, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailNotIn(List<String> values) {
            addCriterion("gpu_detail not in", values, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailBetween(String value1, String value2) {
            addCriterion("gpu_detail between", value1, value2, "gpuDetail");
            return (Criteria) this;
        }

        public Criteria andGpuDetailNotBetween(String value1, String value2) {
            addCriterion("gpu_detail not between", value1, value2, "gpuDetail");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}